package ${map.package}.${map.module}.entity;


import lombok.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;

/**
* ${tableComment}
*
* @author autoCode
* @version 1.0.0-SNAPSHOT
* @date ${.now?string("yyyy-MM-dd")}
*/
@Data
public class ${map.module?cap_first}Entity implements Serializable {

private static final long serialVersionUID = 1L;

<#list columnList as var>
    <#if var.type?index_of("(") == -1>
        <#assign type = var.type>
    <#else >
        <#assign type = var.type?substring(0, var.type?index_of("("))>
    </#if>
    /**
    * ${var.comment}
    */
    <#if var.name == "id">@TableId(value = "`${var.name}`", type = IdType.AUTO)<#elseif var.name == "status">@TableField(value = "`${var.name}`", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_EMPTY)<#elseif var.name == "createTime">@TableField(value = "`${var.name}`", fill = FieldFill.INSERT)<#elseif var.name == "updateTime">@TableField(value = "`${var.name}`", fill = FieldFill.INSERT_UPDATE)<#else >@TableField(value = "`${var.name}`", updateStrategy = FieldStrategy.NOT_EMPTY)</#if>
    private <#if type == "int">Integer <#elseif type == "tinyint">Byte <#elseif type == "datetime">LocalDateTime <#else>String </#if>${var.name};
</#list>

}